<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="/templates/ui.xhtml">

    <ui:define name="head">
        <style type="text/css">
            .col-label {
                width: 80px;
            }
            .col-label2 {
                padding-left: 100px;
                width: 80px;
            }

            .col-input {
                width: 120px;
            }

            .col-input-200 {
                width: 300px;
            }

        </style>

    </ui:define>

    <ui:define name="content">
        <div style="margin:5px 15px 5px 15px">
            <p:growl id="msgs" showDetail="false"/>
            <h:form id="form">
                <h:panelGrid id="detailPanel1" columns="1" cellpadding="3">
                    <h:panelGrid columns="4" cellpadding="2"
                                 columnClasses="col-label,col-input,col-label2,col-input">
                        <h:outputLabel value="凭证编号:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.billcode}" size="30" disabled="true"/>
                        <h:outputLabel value="凭证批次编码:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.printcode}" size="30" disabled="true"/>
                        <h:outputLabel value="账号:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.paybankaccount}" size="30" disabled="true"/>
                        <h:outputLabel value="项目名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.programname}" size="30" disabled="true"/>
                        <h:outputLabel value="月份:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.month}" size="30" disabled="true"/>
                        <h:outputLabel value="授权额度:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.amt}" size="30" disabled="true"/>
                    </h:panelGrid>
                    <h:panelGrid columns="4" style="margin-top: 10px" cellpadding="2"
                                 columnClasses="col-label,col-input,col-label2,col-input">
                        <h:outputLabel value="银行编码:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bankcode}" size="30" disabled="true"/>
                        <h:outputLabel value="银行名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bankname}" size="30" disabled="true"/>
                        <h:outputLabel value="部门编码"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bdgdepartmentcode}" size="30" disabled="true"/>
                        <h:outputLabel value="部门名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bdgdepartmentname}" size="30" disabled="true"/>
                        <h:outputLabel value="单位编码:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bdgagencycode}" size="30" disabled="true"/>
                        <h:outputLabel value="单位名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.bdgagencyname}" size="30" disabled="true"/>
                        <h:outputLabel value="资金性质编码:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.fundtypecode}" size="30" disabled="true"/>
                        <h:outputLabel value="资金性质名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.fundtypename}" size="30" disabled="true"/>
                        <h:outputLabel value="功能分类编码:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.funccode}" size="30" disabled="true"/>
                        <h:outputLabel value="功能分类名称:"/>
                        <p:inputText value="#{accreditVchDetlAction.selectedRecord.funcname}" size="30" disabled="true"/>
                    </h:panelGrid>
                </h:panelGrid>

                <p:separator style="margin-top:15px;"/>
                <p:dataTable id="logpdt" style="margin-top:5px;"
                             value="#{accreditVchDetlAction.logList}" var="log"
                             emptyMessage="日志记录为空...">
                    <p:column id="jobname" headerText="操作动作" style="text-align:center">
                        <h:outputText value="#{log.jobname}"/>
                    </p:column>
                    <p:column id="jobdesc" headerText="操作日志">
                        <h:outputText value="#{log.jobdesc}"/>
                    </p:column>
                    <p:column id="jobusername" headerText="操作人员" style="text-align:center">
                        <h:outputText value="#{log.jobusername}"/>
                    </p:column>
                    <p:column id="jobtime" headerText="操作时间" style="text-align:center">
                        <h:outputText value="#{log.jobtime}">
                            <f:convertDateTime pattern="yyyy-MM-dd HH:mm:ss" timeZone="GMT+8"/>
                        </h:outputText>
                    </p:column>

                </p:dataTable>

            </h:form>
        </div>
    </ui:define>

</ui:composition>